<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="net.ssta.core.db.Record"%>
<%@ page import="net.ssta.core.db.RecordSet"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
Record messageinfo = (Record)request.getAttribute("messageInfo");
Record messagereplyinfo = (Record)request.getAttribute("messagereplyInfo");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
    <TITLE>用户留言</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=utf-8">
    <META http-equiv=x-ua-compatible content=ie=7>
    <META content="MSHTML 6.00.6000.17107" name=GENERATOR>
    <LINK href="<%=path%>/includes/Fvalidate/style.css" type=text/css rel=stylesheet>
    <script type="text/javascript" src="<%=path%>/includes/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/includes/KindEditor/kindeditor.js"></script>    
    <script type="text/javascript" src="<%=path%>/includes/Fvalidate/Fvalidate.js"></script>
    
    <SCRIPT>  
	
	
	function saveEditContent(){
		document.frm.action="<%=path%>/membercenter/message?method=replyMessage";
		document.frm.submit();
	}
	
	function saveEditContent(uuid){
	//var length =  $("input[type=checkbox]").length;
		 $.ajax({
				type: "POST", url: "<%=path%>/back/message?method=replyMessage&uuid="+uuid,
				data:$("#frm").serialize(),
				error:function(){alert("与服务器失去联系，请刷新本页面后再重试！");},
				success: function(msg){
					alert("操作成功!");
					window.close();
					opener.reload();
				}
			 });
	}
	
    </SCRIPT>    
</HEAD>

<BODY>
<form  id="frm" name="frm"  method="post">
<input type="hidden" id="uuid" name="uuid" value="<%=messageinfo.getString("ID","")%>">

	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
        <tr>
          <td height="30">留言内容：</td>
          </tr>
        <tr>
        	<td height="30" align="center">
            <textarea class="" readonly  id ="editorContent" name="editorContent" error="正文内容不能为空或过于简洁！" label="用户留言" style="width:90%;height:195px;word-wrap:break-word;word-break:break-all;"><%=messageinfo.getString("CONTENT","")%></textarea>          </td>
          </tr>
          <tr>
          <td height="30">回复内容：</td>
          </tr>
          <tr>
        	<td height="30" align="center">
            <textarea class=""  id ="replyContent" name="replyContent" error="正文内容不能为空或过于简洁！" label="留言回复" style="width:90%;height:195px;word-wrap:break-word;word-break:break-all;"><%if(messagereplyinfo!=null){%><%=messagereplyinfo.getString("CONTENT","")%><%}%></textarea>          </td>
          </tr>
        <tr>
        	<td height="50" align="center">
            <input type="button" onClick="javascript:window.close();" value=" 关 闭 ">
            <input type="button" onClick="javascript:saveEditContent('<%=messageinfo.getString("ID","")%>');" name="addtech" value=" 提 交 " />            </td>
        </tr>
	</table>
    
</form>
</BODY>
</HTML>
